#include <iostream>

class Obj {
public:
    Obj() {
        std::cout << "Create Obj\n";
    };

    void sayHello() {
        std::cout << "Hello World!\n";
    }

    ~Obj() {
        std::cout << "Destroy Obj\n";
    };
};

int main() {
    // do {
    //     Obj obj;
    //     // obj.sayHello();
    // } while (false);

    auto obj1 = new Obj();
    obj1->sayHello();
    obj1 = new Obj();
    delete obj1;
    return 0;
}
